package io.gitee.chearnee.fw.common.model.vo;

import io.gitee.chearnee.fw.common.model.IResultCode;
import lombok.Getter;

@Getter
public enum ResultCode implements IResultCode {
    SUCCESS(200, "请求成功"),
    SERVICEFAIL(500, "内部服务调用异常"),
    FAILED(500, "操作失败"),
    NO_LOGIN(500, "请登录"),
    EXPIRED(500, "登陆已过期"),
    NO_PERMISSION(500, "没有权限"),
    VERIFICATION_FAILED(300, "验签失败");
    private final int code;
    private final String message;
    private final boolean success;


    ResultCode(int code, String message) {
        this.code = code;
        this.success = false;
        this.message = message;
    }

}